// Function to read moment in a file // Transform a data file to a 1Darray // AG
void readinput(double *variable, const int dimension, const char *file) {    
    std::ifstream input(file); // Change the line to your file
    for (int i = 0; i < dimension; i++) {
        input >> variable[i];
    }
}

void readinputDOUBLE(double variable[], const int dimension, const char *file) {
    std::ifstream input(file); // Change the line to your file
    for (int i = 0; i < dimension; i++) {
        input >> variable[i];
    }
}
